<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/api.css" />
		<link rel="stylesheet" type="text/css" href="../../css/style.css" />
		<style type="text/css">

		</style>
	</head>
	<body>
		<header id="header"></header>
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript">
		var changestyle = 0;
		apiready = function() {
			api.parseTapmode();
			var header = $api.byId('header');
			$api.fixStatusBar(header);
			var headerPos = $api.offset(header);
			var body_h = $api.offset($api.dom('body')).h;
			changestyle = api.pageParam.changestyle;
			api.openFrame({
				name: 'msg_frm',
				url: 'msg_frm.html',
				bounces: false,
				rect: {
					x: 0,
					y: headerPos.h,
					w: 'auto',
					h: 'auto'
				},
				pageParam: {
					icon: api.pageParam.icon,
					title: api.pageParam.title,
					msg: api.pageParam.msg,
					btntxt: api.pageParam.btntxt,
					winname: api.pageParam.winname,
					changestyle: api.pageParam.changestyle
				}
			})

		}
		function closeWin(){
			if(changestyle == 1)
			{
				if (api.systemType == "ios") {
					api.setStatusBarStyle({
						style: 'light'
					});
				}
			}
			api.closeToWin({
				name: api.pageParam.winname
			});
		}
	</script>
</html>
